//
//  FisaNou.m
//  iDent
//
//  Created by Marius Corega on 7/9/09.
//  Copyright 2009 Marius Corega. All rights reserved.
//

#import "Controller.h"


@implementation Controller (FisaNou)

-(IBAction) showFisaNou:(id)sender
{
	[dataManoperaNou setDateValue:[NSDate date]];
	[NSApp beginSheet:fisaNouWindow modalForWindow:window modalDelegate:self didEndSelector:@selector(fisaNouWindowSheetDidEnd:returnCode:contextInfo:) contextInfo:NULL];
}



- (void)fisaNouWindowSheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode  contextInfo:(void  *)contextInfo
{	
	if ((returnCode == NSOKButton) )
	{
		
	}
	
	[fisaNouWindow orderOut:self];
	return;
}

-(IBAction) adaugaFisa:(id)sender
{
	[NSApp endSheet:fisaNouWindow returnCode:NSOKButton];
	[self performSelector:@selector(addFisa:)];
}

-(IBAction) renuntaFisaNou:(id)sender
{
	[NSApp endSheet:fisaNouWindow returnCode:NSCancelButton];
}

@end
